<%-- 
    Document   : selectMail
    Created on : 20-dic-2011, 8.48.34
    Author     : ren
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>

            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <link rel="stylesheet" type="text/css" href="../style_generale.css" />
            <f:loadBundle basename="message.message" var="msg"/>        
            <title> <h:outputText value="#{msg.usl}"/> </title>

        </head>
        <body>

            <h:form>
                <h:panelGrid columns="2" border="1" rules="all" >
                    <h:outputText value="#{msg.username}:" />
                    <h:inputText  value="#{usl.usermail}" />

                    <h:outputText  value="#{msg.pass}:"/>
                    <h:inputSecret  value="#{usl.passmail}" />  

                    <h:selectOneRadio value="#{usl.tipomail}" required="true"  >
                        <f:selectItem itemLabel="@gmail.com" itemValue="gmail" />
                        <f:selectItem itemLabel="@unitn.it" itemValue="unitn" />
                    </h:selectOneRadio>


                    <h:commandButton value="#{msg.inviarichiami}" action="#{usl.inviaRichiami()}" styleClass="button" />
                </h:panelGrid>
            </h:form>

            <br>
            <h:form>
                <h:commandButton value="#{msg.back}" action="back" styleClass="button"/>                
            </h:form>  
            <br>
            <br>
            <%@ include file="/lingua/lingua.jsp" %>

        </body>
    </html>
</f:view>